﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace MODEL
{


    public partial class qgzx_zm_course_situation
    {
        #region 纯的实体对象 + ToPOCO()
        /// <summary>
        /// 纯的实体对象
        /// </summary>
        /// <returns></returns>
        public qgzx_zm_course_situation ToPOCO()
        {
            qgzx_zm_course_situation poco = new qgzx_zm_course_situation()
            {
                Id = this.Id,
                Period = this.Period,
                CourseNum = this.CourseNum,
                CourseId = this.CourseId,
                Teacher = this.Teacher,
                TeacherIntroduce = this.TeacherIntroduce,
                CoursePlan = this.CoursePlan,
                ClassTime = this.ClassTime,
                ClassLocation = this.ClassLocation,
                ClassNum = this.ClassNum,
                ToBegin = this.ToBegin,
                ToEnd = this.ToEnd,
                //ApplyTime = this.ApplyTime,
                //EndTime = this.EndTime,
                EnrollNum = this.EnrollNum


            };
            return poco;
        }
        #endregion


        #region 1.0 生成 TViewModel 实体对象 +ToViewModel
        /// <summary>
        /// 生成 很纯洁的 实体对象
        /// </summary>
        /// <returns></returns>
        public ViewModel.CourseSituation ToViewModel()
        {
            ViewModel.CourseSituation poco = new ViewModel.CourseSituation()
            {
                Id = this.Id,
                Period = this.Period,
                CourseNum = this.CourseNum,
                CourseId = this.CourseId,
                Teacher = this.Teacher,
                TeacherIntroduce = this.TeacherIntroduce,
                CoursePlan = this.CoursePlan,
                ClassTime = this.ClassTime,
                ClassLocation = this.ClassLocation,
                ClassNum = this.ClassNum,
                ToBegin = this.ToBegin,
                ToEnd = this.ToEnd,
                //ApplyTime = this.ApplyTime,
                //EndTime = this.EndTime,
                EnrollNum = this.EnrollNum
            };
            return poco;
        }
        #endregion
    }
}
